<template>
  <div>
    <span>点击登录</span>
  </div>
</template>

<script>
  import { onMounted, reactive } from 'vue'
  import { ceshi } from '../request/api'
    export default {
      name: "login",
      setup() {
        const state = reactive({
          recordState: '0'
        })

        onMounted(() => {
          const requestParam = {
            recordState: state.recordState
          }
          ceshi(requestParam).then(res => {
            if (res.code === 200) {
              const list =  res.data;
            }
          });
        })

      }
    }
</script>

<style scoped>

</style>
